{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "3032bcae",
   "metadata": {},
   "source": [
    "* 2022.8.30\n",
    "* python学习第二周\n",
    "* 记录人：薛欣怡\n",
    "-----\n",
    "* 学习资源：\n",
    "> 1. [许老师博客](https://www.cnblogs.com/xuzhichao),\n",
    "> 2. [markdown](https://www.markdownguide.org/),\n",
    "> 3. [许老师gitee](https://www.gitee.com/xzhichao),\n",
    "> 4. [python文档--模块](https://docs.python.org/3/library)\n",
    "------\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a1d404ae",
   "metadata": {},
   "source": [
    "--------------"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "2ba92e60",
   "metadata": {},
   "source": [
    "# 本周学习内容"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "f341fba2",
   "metadata": {},
   "source": [
    "# 1.Head First Python\n",
    "> 一定要按规格书写以下代码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "d33b9985",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "121646\n",
      "Not an odd minute.\n",
      "124648\n"
     ]
    }
   ],
   "source": [
    "import datetime\n",
    "# 本项目用到了时间模块\n",
    "print(datetime.datetime.today().microsecond)\n",
    "\n",
    "odds = [ 1, 3,  5,  7,    9,11,13,15,17,19,\n",
    "            21,23,25,27,29,31,33,35,37,39,\n",
    "            41,43,45,47,49,51,53,55,57,59 ]\n",
    "right_this_minute= datetime.datetime.today().minute\n",
    "if right_this_minute in odds:\n",
    "    print(\"This minute seems a little odd.\")\n",
    "else:\n",
    "    print(\"Not an odd minute.\")\n",
    "    \n",
    "print(datetime.datetime.today().microsecond)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "586708f1",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 判断当前是一周中的星期几然后打印课表，如果是星期二，然后打印Python课表"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "4ba33489",
   "metadata": {},
   "outputs": [],
   "source": [
    "import time"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "c270f911",
   "metadata": {},
   "outputs": [
    {
     "ename": "NameError",
     "evalue": "name 'time' is not defined",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mNameError\u001b[0m                                 Traceback (most recent call last)",
      "Input \u001b[1;32mIn [8]\u001b[0m, in \u001b[0;36m<cell line: 1>\u001b[1;34m()\u001b[0m\n\u001b[1;32m----> 1\u001b[0m \u001b[43mtime\u001b[49m\u001b[38;5;241m.\u001b[39mlocaltime()\u001b[38;5;241m.\u001b[39mtm_wday\n",
      "\u001b[1;31mNameError\u001b[0m: name 'time' is not defined"
     ]
    }
   ],
   "source": [
    "time.localtime().tm_wday"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "db983e4f",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "markdown",
   "id": "14837388",
   "metadata": {},
   "source": [
    "## 2.1 模块--标准库\n",
    "* 标准库是Python开发团队为满足Python用户日常需求而写好的一些\n",
    "## 2.2 模块--开源模块（pypi.org）\n",
    "## 2.3 自定义模块"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "c85fa5ae",
   "metadata": {},
   "outputs": [],
   "source": [
    "## 3.赋值"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
